--Scheduler测试

print("Scheduler测试")

local i=0
local schedule = zui.Scheduler.new(function()
	print("tick "..i)
	i=i+1
end)

schedule:schedule(0,1000)


local schedule2 = zui.Scheduler.new(function()
	print("执行一次")
end)

schedule2:schedule(3000,1000,1)